<?php

class Talktangle_Model_Vidtangle extends Core_Model_Item_Abstract
{
   public function getHref(){
        return Zend_Controller_Front::getInstance()->getRouter()
      ->assemble(array('type'=>'vid','id'=>$this->getIdentity()), 'talktangle_extended', true);
   } 
   
   public function getActivityType(){
        return 'post_vidtangle';
    
   } 
   
   public function getPhotoUrl($type = null)
   {

    $file = Engine_Api::_()->getItemTable('storage_file')->getFile($this->photo_id, $type);
    if( !$file ) {
      return;
    }

    return $file->map();
  }
   public function getTangleType(){
        return 'talktangle_vidtangle';
   }
   
    
}